package com.atguigu.gulimail.ware.entity.Vo;

import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

@Data
public class OrderItemVo {
    private Long skuId; //商品的Id

    private Boolean check = true; //勾选状态

    private String title;  //商品标题

    private String image;  //商品图片


    private List<String> skuAttrValues; //商品套餐信息

    private BigDecimal price; //商品价格

    private Integer count;  //商品加购数量

    private BigDecimal totalPrice; //商品总价格

    /**
     * 获取
     * @return skuId
     */
    public Long getSkuId() {
        return skuId;
    }

    /**
     * 设置
     * @param skuId
     */
    public void setSkuId(Long skuId) {
        this.skuId = skuId;
    }

    /**
     * 获取
     * @return check
     */
    public Boolean getCheck() {
        return check;
    }

    /**
     * 设置
     * @param check
     */
    public void setCheck(Boolean check) {
        this.check = check;
    }

    /**
     * 获取
     * @return title
     */
    public String getTitle() {
        return title;
    }

    /**
     * 设置
     * @param title
     */
    public void setTitle(String title) {
        this.title = title;
    }

    /**
     * 获取
     * @return image
     */
    public String getImage() {
        return image;
    }

    /**
     * 设置
     * @param image
     */
    public void setImage(String image) {
        this.image = image;
    }

    /**
     * 获取
     * @return skuAttrValues
     */
    public List<String> getSkuAttrValues() {
        return skuAttrValues;
    }

    /**
     * 设置
     * @param skuAttrValues
     */
    public void setSkuAttrValues(List<String> skuAttrValues) {
        this.skuAttrValues = skuAttrValues;
    }

    /**
     * 获取
     * @return price
     */
    public BigDecimal getPrice() {
        return price;
    }

    /**
     * 设置
     * @param price
     */
    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    /**
     * 获取
     * @return count
     */
    public Integer getCount() {
        return count;
    }

    /**
     * 设置
     * @param count
     */
    public void setCount(Integer count) {
        this.count = count;
    }

    /**
     * 获取
     * @return totalPrice
     */
    public BigDecimal getTotalPrice() {
        BigDecimal total=this.price.multiply(new BigDecimal(""+this.count));
        return total;
    }

    /**
     * 设置
     * @param totalPrice
     */
    public void setTotalPrice(BigDecimal totalPrice) {
        this.totalPrice = totalPrice;
    }

    public String toString() {
        return "CartItem{skuId = " + skuId + ", check = " + check + ", title = " + title + ", image = " + image + ", skuAttrValues = " + skuAttrValues + ", price = " + price + ", count = " + count + ", totalPrice = " + totalPrice + "}";
    }

}
